$execute store result score #index temp run data get entity @n[tag=VoidShop.slot,distance=..10,type=item_display,nbt={item:{components:{"minecraft:custom_data":{VoidShopSlot:{id:$(Slotid)}}}}}] item.components."minecraft:custom_data".VoidShopSlot.Index
$scoreboard players remove #index temp $(Slotid)
execute store result storage vs:system temp.VSPB.start_index int 1 run scoreboard players remove #index temp 10